package main

import (
    "context"
    "time"

    log "github.com/sirupsen/logrus"

    singer "cing.io/cing-singer"
)

func main() {
    taskFullName := "default/demo"
    singer.PutTaskFunc(taskFullName, func() error {
        log.Info("- Something is running... ", taskFullName)
        time.Sleep(time.Second * 3)
        log.Infof("- Task %s finished!\n", taskFullName)
        return nil
    })
    singer.Init(context.TODO())
}
